import request from '@/router/axios'
import { baseUrl } from '@/config/env'

// 添加志愿者数
export function addVolunteer(data) {
    return request({
        url: baseUrl + '/pc/volunteer',
        method: 'post',
        data
    })
}

// 查询志愿者数
export function getVolunteer(data) {
    return request({
        url: baseUrl + '/pc/volunteer',
        method: 'get',
        params: data
    })
}

// 更新志愿者数
export function updateVolunteer(data) {
    return request({
        url: baseUrl + '/pc/volunteer',
        method: 'put',
        data
    })
}

// 删除志愿者数
export function deleteVolunteer(data) {
    return request({
        url: baseUrl + '/pc/volunteer',
        method: 'delete',
        data
    })
}
